/*
 * @Descripttion: 员工级别API
 * @version: 2.0
 * @Author: 许国辉
 * @Date: 2022-12-05 20:30:28
 * @LastEditors: 许国辉
 * @LastEditTime: 2022-12-05 21:59:39
 */

import { defHttp } from '/@/utils/http/axios';
import { EmployeeLeaveModel } from './model/employeeLeave';

enum Api {
  getEmployeeList = '/employeeLeave/getEmployeeLeaves',
}

export function getEmployeeLeaves() {
  return defHttp.post<Array<EmployeeLeaveModel>>({
    url: Api.getEmployeeList,
    headers: {
      ignoreCancelToken: true,
    },
  });
}
